package com.itheima.pojo;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.sql.Timestamp;

/**
 * 实体类
 * @author Administrator
 *
 */
@Entity
@Table(name="t_blog")

public class Blog implements Serializable{

	@Id
	private String uid;//唯一uid



	private String title;//博客标题
	private String summary;//博客简介
	private String content;//博客内容
	private String tag_uid;//标签uid
	private long click_count;//博客点击数
	private long collect_count;//博客收藏数
	private String file_uid;//标题图片uid
	private long status;//状态
	private java.sql.Timestamp create_time;//创建时间
	private java.sql.Timestamp update_time;//更新时间
	private String admin_uid;//管理员uid
	private String is_original;//是否原创（0:不是 1：是）
	private String author;//作者
	private String articles_part;//文章出处
	private String blog_sort_uid;//博客分类UID
	private long level;//推荐等级(0:正常)
	private String is_publish;//是否发布：0：否，1：是
	private long sort;//排序字段
	private long start_comment;//是否开启评论(0:否 1:是)

	public String getUid() {
		return uid;
	}

	public void setUid(String uid) {
		this.uid = uid;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getSummary() {
		return summary;
	}

	public void setSummary(String summary) {
		this.summary = summary;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getTag_uid() {
		return tag_uid;
	}

	public void setTag_uid(String tag_uid) {
		this.tag_uid = tag_uid;
	}

	public long getClick_count() {
		return click_count;
	}

	public void setClick_count(long click_count) {
		this.click_count = click_count;
	}

	public long getCollect_count() {
		return collect_count;
	}

	public void setCollect_count(long collect_count) {
		this.collect_count = collect_count;
	}

	public String getFile_uid() {
		return file_uid;
	}

	public void setFile_uid(String file_uid) {
		this.file_uid = file_uid;
	}

	public long getStatus() {
		return status;
	}

	public void setStatus(long status) {
		this.status = status;
	}

	public Timestamp getCreate_time() {
		return create_time;
	}

	public void setCreate_time(Timestamp create_time) {
		this.create_time = create_time;
	}

	public Timestamp getUpdate_time() {
		return update_time;
	}

	public void setUpdate_time(Timestamp update_time) {
		this.update_time = update_time;
	}

	public String getAdmin_uid() {
		return admin_uid;
	}

	public void setAdmin_uid(String admin_uid) {
		this.admin_uid = admin_uid;
	}

	public String getIs_original() {
		return is_original;
	}

	public void setIs_original(String is_original) {
		this.is_original = is_original;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getArticles_part() {
		return articles_part;
	}

	public void setArticles_part(String articles_part) {
		this.articles_part = articles_part;
	}

	public String getBlog_sort_uid() {
		return blog_sort_uid;
	}

	public void setBlog_sort_uid(String blog_sort_uid) {
		this.blog_sort_uid = blog_sort_uid;
	}

	public long getLevel() {
		return level;
	}

	public void setLevel(long level) {
		this.level = level;
	}

	public String getIs_publish() {
		return is_publish;
	}

	public void setIs_publish(String is_publish) {
		this.is_publish = is_publish;
	}

	public long getSort() {
		return sort;
	}

	public void setSort(long sort) {
		this.sort = sort;
	}

	public long getStart_comment() {
		return start_comment;
	}

	public void setStart_comment(long start_comment) {
		this.start_comment = start_comment;
	}

	@Override
	public String toString() {
		return "Blog{" + "uid='" + uid + '\'' + ", title='" + title + '\'' + ", summary='" + summary + '\'' + ", content='" + content + '\'' + ", tag_uid='" + tag_uid + '\'' + ", click_count=" + click_count + ", collect_count=" + collect_count + ", file_uid='" + file_uid + '\'' + ", status=" + status + ", create_time=" + create_time + ", update_time=" + update_time + ", admin_uid='" + admin_uid + '\'' + ", is_original='" + is_original + '\'' + ", author='" + author + '\'' + ", articles_part='" + articles_part + '\'' + ", blog_sort_uid='" + blog_sort_uid + '\'' + ", level=" + level + ", is_publish='" + is_publish + '\'' + ", sort=" + sort + ", start_comment=" + start_comment + '}';
	}
}
